<?php

/**
 * Modulo filter form.
 *
 * @package    sistema_estadisticas
 * @subpackage filter
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormFilterTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class ModuloFormFilter extends BaseModuloFormFilter
{

	public function configure()
	{
		unset($this['malla_id']);
		
		$this->widgetSchema['numero'] = new WidgetFormFilterChoice(array('choices' => Constantes::$MODULOS));
	}

	public function addNumeroColumnQuery(Doctrine_Query $q, $field, $values)
	{
		$q->addWhere($q->getRootAlias() . '.' . $field . '=?', $values['text']);
	}

}
